package com.jsj.service;

import com.jsj.dao.SclassDao;
import com.jsj.domain.Sclass;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SclassService {
    private SclassDao sclassDao;

    @Autowired
    public void setSclassDao(SclassDao sclassDao) {
        this.sclassDao = sclassDao;
    }

    public Sclass query(int id) {
        return sclassDao.query(id);
    }

    public Integer delete(int id) {
        return sclassDao.delete(id);
    }

    public Integer update(Sclass sclass) {
        return sclassDao.update(sclass);
    }

    public Integer insert(Sclass sclass) {
        return sclassDao.insert(sclass);
    }
}
